package com.tjetc.controller;

import com.tjetc.entity.UserMessage;
import com.tjetc.mapper.UserMapper;
import com.tjetc.service.IUserMessageService;
import com.tjetc.service.impl.UserMessageServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/userMessage")
public class UserMessageController {

    @Autowired
    private IUserMessageService userMessageService;

    @RequestMapping("/findByUid")
    public List<UserMessage> findByUid(Integer uid){
        return userMessageService.findByUid(uid);
    }


}
